import request from "@/utils/request";

// 查询器具明细表列表
export function listBaQjDetail(query) {
  return request({
    url: "/sycs/baQjDetail/list",
    method: "get",
    params: query
  });
}
// 查询器具明细表列表
export function page(query) {
  return request({
    url: "/sycs/baQjDetail/page",
    method: "get",
    params: query
  });
}

// 查询器具明细表列表
export function usablePage(query) {
  return request({
    url: "/sycs/baQjDetail/usablePage",
    method: "get",
    params: query
  });
}

// 查询器具明细表详细
export function getBaQjDetail(detailId) {
  return request({
    url: "/sycs/baQjDetail/" + detailId,
    method: "get"
  });
}

// 新增器具明细表
export function addBaQjDetail(data) {
  return request({
    url: "/sycs/baQjDetail",
    method: "post",
    data: data
  });
}

// 修改器具明细表
export function updateBaQjDetail(data) {
  return request({
    url: "/sycs/baQjDetail",
    method: "put",
    data: data
  });
}

// 删除器具明细表
export function delBaQjDetail(detailId) {
  return request({
    url: "/sycs/baQjDetail/" + detailId,
    method: "delete"
  });
}

// 查询器具树
export function qjTree(data) {
  return request({
    url: "/base/syQj/qjTree",
    method: "get",
    params: data
  });
}

// 查询器具子集
export function pageSub(query) {
  return request({
    url: "/base/syQj/pageSub",
    method: "get",
    params: query
  });
}

// 查询器具子集
export function qjList() {
  return request({
    url: "/base/syQj/qjList",
    method: "get"
  });
}
